package com.woniuxy.homepage.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author gmx
 * @since 2021-06-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("car_mycar")
@ApiModel(value="CarMycar对象", description="")
public class CarMycar implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "我的汽车id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "品牌")
    private String brandname;

    @ApiModelProperty(value = "车系")
    private String typeName;

    @ApiModelProperty(value = "排量")
    private String displacement;

    @ApiModelProperty(value = "年份")
    private String year;

    @ApiModelProperty(value = "款式")
    private String style;

    @ApiModelProperty(value = "上牌时间")
    private Date viTime;

    @ApiModelProperty(value = "当前公里数")
    private Double mile;

    @ApiModelProperty(value = "车牌号")
    private String carNumber;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "软删除：0未删除，1已删除")
    private Integer flag;

    @ApiModelProperty(value = "购买价格")
    private BigDecimal price;

    @ApiModelProperty(value = "是否有事故,0:无事故,1:有事故")
    private Integer isaccident;
    @ApiModelProperty(value = "所在地区")
    private String district;
}
